var bulk = require('bulk-require');

var angular = require('angular');

// angular modules
require('angular-ui-router');
require('angular-animate');
require('angular-translate');
bulk(__dirname, ['./components/common/*/index.js']);
bulk(__dirname, ['./components/*/index.js']);

var requires = [
    'ui.router',
    'ngAnimate',
    'pascalprecht.translate',
    'app.controllers',
    'app.directives',
    'app.services',
    'app.filters',
    'app.constants',
    'templates'
];

angular.module('app', requires);

angular.module('app').config(require('./on_config'));

angular.module('app').run(require('./on_run'));
